package service.impl;

import dao.ComputerroomDao;
import dao.impl.ComputerroomDaoImpl;
import entity.Computerroom;
import service.ComputerroomService;

import java.util.List;

public class ComputerroomServiceImpl implements ComputerroomService {
    ComputerroomDao computerroomDao=new ComputerroomDaoImpl();
    @Override
    public List<Computerroom> list() {
        return computerroomDao.list();
    }

    @Override
    public int add(Computerroom computerroom) {
        return computerroomDao.add(computerroom);
    }

    @Override
    public int delete(int id) {
        return computerroomDao.delete(id);
    }
}
